# -*- coding: utf-8 -*-


"""
url: https://fanyi.baidu.com/sug

kw=hello
"""
import requests

url = 'https://fanyi.baidu.com/sug'

# 准备参数
data = {
    'kw':'hello'
}

# 发请求
res = requests.post(url, data=data)

# 打印结果
# print(res.json())
print(res.json()['data'][0]['v'])
# print(res.json()['data'][0]['v'])

# dict1 = {'name':[{'python':'nihao'},{'hello':'zuoshou'}]}
# print(dict1['name'][1]['hello'])



